import {
    observable,
    action
} from 'mobx-miniprogram'

export const store = observable({
    userInfo: {},
    activeTabBarIndex: 0, // 匹配app.json首页
    updateUserInfo: action(function (user) {
        this.userInfo = user
    }),
    updateActiveTabBarIndex: action(function (e) {
        this.activeTabBarIndex = e
    })
})